import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import nodejs from '@dfeidao/atom-web/msg/nodejs';
export default async function a007(fd: IFeidaoAiBrowserComponent, zta: Event) {
	const d = zta.currentTarget as HTMLDivElement;
	const no = d.getAttribute('data-a007');
	console.log(no);
	const res = await nodejs<{ code: number }>('train-plan/zj-000002/s002', {
		train_number: no,
		take_effect: 1
	});
	if (res.code === 1) {
		alert('成功');
		window.location.reload();
	}
}
